<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>添加员工-页面</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/js/jquery-2.2.4.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
  </head>
  <body>
  <jsp:include page="nav.jsp"/>
  <div class="container">

    <div class="panel panel-info">
      <div class="panel-heading text-center">
        <h4>添加员工</h4>
      </div>
      <div class="panel-body">
        <form class="form-horizontal" action="${pageContext.request.contextPath}/addEmployee.do" method="post">
          <div class="form-group">
            <label   class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
              <input type="text" class="form-control"   name="name" placeholder="请输入姓名" value="">
            </div>
          </div>
          <div class="form-group">
            <label   class="col-sm-2 control-label">性别</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                <input type="radio" name="sex"  value="1" checked="checked"> 男
              </label>
              <label class="radio-inline">
                <input type="radio" name="sex"  value="0"> 女
              </label>
            </div>
          </div>
          <div class="form-group">
            <label   class="col-sm-2 control-label">员工编号</label>
            <div class="col-sm-10">
              <input type="text" class="form-control"   name="empNo" placeholder="请输入新密码" value="">
            </div>
          </div>
          <div class="form-group">
            <label   class="col-sm-2 control-label">工作</label>
            <div class="col-sm-10">
              <select class="form-control" name="job">
                <option value="售前">售前</option>
                <option value="售前">工程师</option>
                <option value="财务">财务</option>
                <option value="总经理">总经理</option>
                <option value="清洁工">清洁工</option>
                <option value="售后">售后</option>
              </select>
            </div>
          </div>
          <div class="form-group">
            <label   class="col-sm-2 control-label">生日</label>
            <div class="col-sm-10">
              <input type="text" class="form-control"   name="birthday" placeholder="请输入新密码" value="1999-03-16">
            </div>
          </div>

          <div class="form-group">
            <label   class="col-sm-2 control-label">入职时间</label>
            <div class="col-sm-10">
              <input type="text" class="form-control"   name="hireday" placeholder="请输入新密码" value="2016-11-11">
            </div>
          </div>
          <div class="form-group">
          <label   class="col-sm-2 control-label">月薪</label>
          <div class="col-sm-10">
            <input type="text" class="form-control"   name="sal" placeholder="请输入新密码" value="">
          </div>
        </div>

          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-default">提交</button>
              <span style="color:red">${msg}</span>
            </div>

          </div>
        </form>
      </div>
    </div>


  </div>
  </body>
</html>
